
// 本地存储

function set(key,val){
    localStorage.setItem(key,JSON.stringify(val))
}

function get(key){
    return localStorage.getItem(key)
}

function remove(){
    localStorage.removeItem(key)
}

function clear(){
    localStorage.clear()
}

module.exports = {
    set,
    get,
    remove,
    clear
}